﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Sigecov.Formularios
{
    public partial class FrmBase : Form
    {
        public FrmBase()
        {
            InitializeComponent();
        }
        public static string _tipoOperacao = "";
        public static int _idAcao = 0;
        private void FrmBase_Load(object sender, EventArgs e)
        {

        }
        #region ACOES
        protected void AcaoIncluir()
        {
            btnSalvar.Visible = true;
            btnDeletar.Visible = false;
            btnCancelar.Visible = true;
        }
        public void AcaoAlterar()
        {
            btnSalvar.Visible = true;
            btnDeletar.Visible = false;
            btnCancelar.Visible = false;
        }
        public void AcaoDeletar()
        {
            btnSalvar.Visible = false;
            btnDeletar.Visible = true;
            btnCancelar.Visible = false;
        }
        #endregion
        public void DesabilitarBotoes()
        {
            btnSalvar.Visible = false;
            btnDeletar.Visible = false;
            btnCancelar.Visible = false;
        }
    }
}
